<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword"
	content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

<title>管理员.修改教师</title>

<!-- Bootstrap core CSS -->
<link href="${basePath}/assets/css/bootstrap.css" rel="stylesheet">
<!--external css-->
<link href="${basePath}/assets/font-awesome/css/font-awesome.css"
	rel="stylesheet" />
<link rel="stylesheet" type="text/css"
	href="${basePath}/assets/js/bootstrap-datepicker/css/datepicker.css" />
<link rel="stylesheet" type="text/css"
	href="${basePath}/assets/js/bootstrap-daterangepicker/daterangepicker.css" />

<!-- Custom styles for this template -->
<link href="${basePath}/assets/css/style.css" rel="stylesheet">
<link href="${basePath}/assets/css/style-responsive.css"
	rel="stylesheet">

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>

	<section id="container">
		<!-- **********************************************************************************************************************************************************
      TOP BAR CONTENT & NOTIFICATIONS
      *********************************************************************************************************************************************************** -->
		<!--header start-->
		<header class="header black-bg">
			<div class="sidebar-toggle-box">
				<div class="fa fa-bars tooltips" data-placement="right"
					data-original-title="Toggle Navigation"></div>
			</div>
			<!--logo start-->
			<a href="index.html" class="logo"><b>学生管理系统</b></a>

		</header>
		<!--header end-->

		<!-- **********************************************************************************************************************************************************
      MAIN SIDEBAR MENU
      *********************************************************************************************************************************************************** -->
		<!--sidebar start-->
		<aside>
			<div id="sidebar" class="nav-collapse ">
				<!-- sidebar menu start-->
				<ul class="sidebar-menu" id="nav-accordion">
					<h5 class="centered">管理员：</h5>

					<li class="mt"><a class="active" href="${basePath }/admin/student/list.do">
							<i class="fa fa-dashboard"></i> <span>学生管理</span>
					</a></li>

					<li class="sub-menu"><a
						href="${pageContext.request.contextPath}/admin/teacher/list.do">
							<i class="fa fa-desktop"></i> <span>教师管理</span>
					</a></li>

					<li class="sub-menu"><a
						href="${basePath }/admin/subject/list.do"> <i
							class="fa fa-desktop"></i> <span>课程管理</span>
					</a></li>
					<li class="sub-menu"><a
						href="${basePath }/admin/score/list.do"> <i
							class="fa fa-desktop"></i> <span>成绩管理</span>
					</a></li>
				</ul>
				<!-- sidebar menu end-->
			</div>
		</aside>
		<!--sidebar end-->

		<!-- **********************************************************************************************************************************************************
      MAIN CONTENT
      *********************************************************************************************************************************************************** -->



		<section id="main-content">
			<section class="wrapper">
				<h3>
					<i class="fa fa-angle-right"></i> 学生修改
				</h3>

				<!-- BASIC FORM ELELEMNTS -->
				<div class="row mt">
					<div class="col-lg-12">
						<div class="form-panel">
							<form class="form-horizontal style-form"
								action="${pageContext.request.contextPath}/admin/student/alter.do"
								method="post">
								<input type="hidden" name="id" value="${student.id }">
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">姓名</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" name="name"
											value="${student.name}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">年龄</label>
									<div class="col-sm-10">
										<input class="form-control" type="text" name="age"
											value="${student.age}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">性别</label>
									<div class="col-sm-10">
										<c:if test="${student.sex==0 }">
											<input type="radio" name="sex" checked="checked" value="0">男
									<input type="radio" name="sex" value="1">女
								</c:if>
										<c:if test="${student.sex==1 }">
											<input type="radio" name="sex" value="0">男
									<input type="radio" name="sex" value="1" checked="checked">女
								</c:if>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">用户名</label>
									<div class="col-sm-10">
										<input class="form-control" type="text" name="username"
											readonly="readonly" value="${student.username}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">密码</label>
									<div class="col-sm-10">
										<input class="form-control" type="text" name="password"
											value="${student.password}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">邮箱</label>
									<div class="col-sm-10">
										<input class="form-control" type="email" name="email"
											value="${student.email}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">班级</label>
									<div class="col-sm-10">
										<select name="studentClass.id">
											<c:forEach items="${classes }" var="classe">
												<c:if test="${classe.id==student.studentClass.id }">
													<option value="${classe.id }" selected="selected">
														${classe.name }</option>
												</c:if>
												<c:if test="${classe.id!=student.studentClass.id }">
													<option value="${classe.id }">${classe.name }</option>
												</c:if>
											</c:forEach>
										</select>
									</div>
								</div>
								<button class="btn btn-sm btn-primary" type="submit" value="修改">修改</button>
								<span style="color: red">${info }</span>

							</form>
						</div>
					</div>
					<!-- col-lg-12-->
				</div>
				<!-- /row -->

				<!-- INLINE FORM ELELEMNTS -->

			</section>
			<! --/wrapper -->
		</section>
		<!-- /MAIN CONTENT -->

		<!--main content end-->

	</section>

	<!-- js placed at the end of the document so the pages load faster -->
	<script src="${basePath}/assets/js/jquery.js"></script>
	<script src="${basePath}/assets/js/bootstrap.min.js"></script>
	<script class="include" type="text/javascript"
		src="${basePath}/assets/js/jquery.dcjqaccordion.2.7.js"></script>
	<script src="${basePath}/assets/js/jquery.scrollTo.min.js"></script>
	<script src="${basePath}/assets/js/jquery.nicescroll.js"
		type="text/javascript"></script>


	<!--common script for all pages-->
	<script src="${basePath}/assets/js/common-scripts.js"></script>

	<!--script for this page-->
	<script src="${basePath}/assets/js/jquery-ui-1.9.2.custom.min.js"></script>

	<!--custom switch-->
	<script src="${basePath}/assets/js/bootstrap-switch.js"></script>

	<!--custom tagsinput-->
	<script src="${basePath}/assets/js/jquery.tagsinput.js"></script>

	<!--custom checkbox & radio-->

	<script type="text/javascript"
		src="${basePath}/assets/js/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script type="text/javascript"
		src="${basePath}/assets/js/bootstrap-daterangepicker/date.js"></script>
	<script type="text/javascript"
		src="${basePath}/assets/js/bootstrap-daterangepicker/daterangepicker.js"></script>

	<script type="text/javascript"
		src="${basePath}/assets/js/bootstrap-inputmask/bootstrap-inputmask.min.js"></script>


	<script src="${basePath}/assets/js/form-component.js"></script>




</body>
</html>
